﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LoginStatus.ascx.cs"
    Inherits="Pages_WebControls_LogInControl" %>
     <div class="login_text">
<asp:LoginView ID="LoginView" runat="server">
    <AnonymousTemplate>
        <asp:LinkButton ID="LoginButton" runat="server" onclick="LoginButton_Click">Autentificate</asp:LinkButton>
        |
        <a href="<%$RouteUrl:RouteName=Register%>" runat="server" >Creazati cont</a>
    </AnonymousTemplate>
    <LoggedInTemplate>
        Salut,
        <asp:LoginName ID="LoginName" runat="server" />
        |
        <asp:LoginStatus ID="LoginStatus" runat="server" LogoutText="Iesire" LogoutPageUrl='<%$ RouteUrl:RouteName=Home %>' />
    </LoggedInTemplate>
    <RoleGroups>
        <asp:RoleGroup Roles="Admin">
            <ContentTemplate>
                Salut Admin,
                <asp:LoginName ID="LoginName" runat="server" />
                |
                <asp:LoginStatus ID="LoginStatus" runat="server" LogoutText="Iesire" LogoutPageUrl='<%$ RouteUrl:RouteName=Home %>' />
            </ContentTemplate>
        </asp:RoleGroup>
        <asp:RoleGroup Roles="User">
            <ContentTemplate>
                Salut User,
                <asp:LoginName ID="LoginName" runat="server" />
                |
                <asp:LoginStatus ID="LoginStatus" runat="server" LogoutText="Iesire" LogoutPageUrl='<%$ RouteUrl:RouteName=Home %>' />
            </ContentTemplate>
        </asp:RoleGroup>
    </RoleGroups>
</asp:LoginView>
</div>


